package com.heima.api.user;

import com.heima.api.user.dto.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "user-dome",path = "/user")
public interface UserClient {
    @GetMapping("/get/{id}")
    UserDto get(@PathVariable("id") Long id);
}
